﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

using Whoever.Framework.Base;

namespace Comswing.Business.Entities
{
    public class User : BusinessEntity
    {
        [Key]
        public int Id { get; set; }
        [Required]
        public string Account { get; set; }
        [Required]
        public string Password { get; set; }
        [Required]
        public string Email { get; set; }
        public bool IsLoggedin { get; set; }
        public DateTime SignupDate { get; set; }

        public virtual Profile Profile { get; set; }
        public virtual Organization Organization { get; set; }
        public virtual ICollection<UserSwing> UserSwings { get; set; }
        public virtual ICollection<UserLog> UserLogs { get; set; }
    }
}
